package com.demo.service.impl;

import com.demo.dao.Score;
import com.demo.mapper.ScoreMapper;
import com.demo.service.ScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ScoreServiceImpl implements ScoreService {

    @Autowired
    ScoreMapper scoreMapper;

    @Override
    public List<Score> getScoreByClass(String classno, String term) {
        return scoreMapper.getScoreByClass(classno,term);
    }

    @Override
    public List<Score> getScoreByCId(String classno, String term, int cid) {
        return scoreMapper.getScoreByCId(classno,term,cid);
    }

    @Override
    public List<Score> getScoreBySid(String term, String sid) {
        return scoreMapper.getScoreBySid(term,sid);
    }

    @Override
    public List<Score> getDisqualified(String classno, String term) {
        return scoreMapper.getDisqualified(classno,term);
    }

    @Override
    public List<Score> getDisqualifiedByCid(String classno, String term, int cid) {
        return scoreMapper.getDisqualifiedByCid(classno,term,cid);
    }

    @Override
    public void insertScore(Score score) {
        scoreMapper.insertScore(score);
    }



}
